package com.zayats.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;

import org.springframework.jdbc.core.RowMapper;

public class ShopitemsRowMapper implements RowMapper {
	public Object mapRow(ResultSet result, int arg1) throws SQLException {

		HashMap<String, String> temp = new HashMap<String, String>();
		temp.put("shopitemId", result.getString("shopitem_id"));
		temp.put("name", result.getString("name"));
		temp.put("quantity", result.getString("quantity"));
		temp.put("bought", result.getString("bought"));
		
		return temp;
	}
}